home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Apple WWDC 1996
/
WWDC96_1996 (CD).toast
/
Technology Materials
/
MacOS 8 Resources
/
Developer Tools
/
Mac OS 8 Interfaces & Libraries
/
Interfaces
/
AIncludes
/
ROMDefs.a
< prev
next >
Wrap
Text File
|
1996-05-01
|
10KB
|
245 lines
;
; File: ROMDefs.a
;
; Contains: NuBus card ROM Definitions.
;
; Version: Technology: System 7.5
; Release: Universal Interfaces 3.0d3 on Copland DR1
;
; Copyright: © 1984-1996 by Apple Computer, Inc. All rights reserved.
;
; Bugs?: If you find a problem with this file, send the file and version
; information (from above) and the problem description to:
;
; Internet: apple.bugs@applelink.apple.com
; AppleLink: APPLE.BUGS
;
;
IF &TYPE('__ROMDEFS__') = 'UNDEFINED' THEN
__ROMDEFS__ SET 1
appleFormat EQU 1 ;Format of Declaration Data (IEEE will assign real value)
romRevision EQU 1 ;Revision of Declaration Data Format
romRevRange EQU 9 ;Revision of Declaration Data Format [1..9]
testPattern EQU 1519594439 ;FHeader long word test pattern
sCodeRev EQU 2 ;Revision of code (For sExec)
sExec2 EQU 2
sCPU68000 EQU 1 ;CPU type = 68000
sCPU68020 EQU 2 ;CPU type = 68020
sCPU68030 EQU 3 ;CPU type = 68030
sCPU68040 EQU 4 ;CPU type = 68040
sMacOS68000 EQU 1 ;Mac OS, CPU type = 68000
sMacOS68020 EQU 2 ;Mac OS, CPU type = 68020
sMacOS68030 EQU 3 ;Mac OS, CPU type = 68030
sMacOS68040 EQU 4 ;Mac OS, CPU type = 68040
board EQU 0 ;Board sResource - Required on all boards
displayVideoAppleTFB EQU 16843009 ;Video with Apple parameters for TFB card.
displayVideoAppleGM EQU 16843010 ;Video with Apple parameters for GM card.
networkEtherNetApple3Com EQU 33620225 ;Ethernet with apple parameters for 3-Comm card.
testSimpleAppleAny EQU -2147417856 ;A simple test sResource.
endOfList EQU 255 ;End of list
defaultTO EQU 100 ;100 retries.
; sResource flags for sRsrc_Flags
fOpenAtStart EQU 1 ; set => open the driver at start time, else do not
f32BitMode EQU 2 ; set => a 32-bit address will be put into dctlDevBase (IM Devices 2-54)
sRsrcType EQU 1 ;Type of sResource
sRsrcName EQU 2 ;Name of sResource
sRsrcIcon EQU 3 ;Icon
sRsrcDrvrDir EQU 4 ;Driver directory
sRsrcLoadDir EQU 5 ;Load directory
sRsrcBootRec EQU 6 ;sBoot record
sRsrcFlags EQU 7 ;sResource Flags
sRsrcHWDevId EQU 8 ;Hardware Device Id
minorBaseOS EQU 10 ;Offset to base of sResource in minor space.
minorLength EQU 11 ;Length of sResource's address space in standard slot space.
majorBaseOS EQU 12 ;Offset to base of sResource in Major space.
majorLength EQU 13 ;Length of sResource in super slot space.
sRsrcTest EQU 14 ;sBlock diagnostic code
sRsrccicn EQU 15 ;Color icon
sRsrcicl8 EQU 16 ;8-bit (indexed) icon
sRsrcicl4 EQU 17 ;4-bit (indexed) icon
sDRVRDir EQU 16 ;sDriver directory
sGammaDir EQU 64 ;sGamma directory
sRsrcVidNames EQU 65 ;Video mode name directory
sRsrcDock EQU 80 ;spID for Docking Handlers
sDiagRec EQU 85 ;spID for board diagnostics
sVidAuxParams EQU 123 ;more video info for Display Manager -- timing information
sDebugger EQU 124 ;DatLstEntry for debuggers indicating video anamolies
sVidAttributes EQU 125 ;video attributes data field (optional,word)
fLCDScreen EQU 0 ; bit 0 - when set is LCD, else is CRT
fBuiltInDisplay EQU 1 ; 1 - when set is built-in (in the box) display, else not
fDefaultColor EQU 2 ; 2 - when set display prefers multi-bit color, else gray
fActiveBlack EQU 3 ; 3 - when set black on display must be written, else display is naturally black
fDimMinAt1 EQU 4 ; 4 - when set should dim backlight to level 1 instead of 0
fBuiltInDetach EQU 4 ; 4 - when set is built-in (in the box), but detaches
sVidParmDir EQU 126
sBkltParmDir EQU 140 ;directory of backlight tables
stdBkltTblSize EQU 36 ;size of ``standard'' 0..31-entry backlight table
sSuperDir EQU 254
; =======================================================================
; sResource types
; =======================================================================
catBoard EQU $0001 ;Category for board types.
catTest EQU $0002 ;Category for test types -- not used much.
catDisplay EQU $0003 ;Category for display (video) cards.
catNetwork EQU $0004 ;Category for Networking cards.
catScanner EQU $0008 ;scanners bring in data somehow
catCPU EQU $000A
catIntBus EQU $000C
catProto EQU $0011
catDock EQU $0020 ;<Type>
typeBoard EQU $0000
typeApple EQU $0001
typeVideo EQU $0001
typeEtherNet EQU $0001
typeStation EQU $0001
typeDesk EQU $0002
typeTravel EQU $0003
typeDSP EQU $0004
typeXPT EQU $000B
typeSIM EQU $000C
typeDebugger EQU $0100
type68000 EQU $0002
type68020 EQU $0003
type68030 EQU $0004
type68040 EQU $0005
type601 EQU $0025
type603 EQU $002E
typeAppleII EQU $0015 ;Driver Interface : <id.SW>
drSwMacCPU EQU 0
drSwAppleIIe EQU $0001
drSwApple EQU 1 ;To ask for or define an Apple-compatible SW device.
drSwMacsBug EQU $0104
drSwDepewEngineering EQU $0101 ;Driver Interface : <id.SW><id.HW>
drHwTFB EQU 1 ;HW ID for the TFB (original Mac II) video card.
drHw3Com EQU 1 ;HW ID for the Apple EtherTalk card.
drHwBSC EQU 3
drHwGemini EQU 1
drHwDeskBar EQU 1
drHwATT3210 EQU $0001
drHwBootBug EQU $0100
drHwMicroDock EQU $0100 ; video hardware id's - <catDisplay><typVideo>
drHwRBV EQU $0018
drHwJMFB EQU $0019
drHwElsie EQU $001A
drHwTim EQU $001B
drHwDAFB EQU $001C
drHwGSC EQU $001E
drHwDAFBPDS EQU $001F
drHWVSC EQU $0020
drHwApollo EQU $0021
drHwSonora EQU $0022
drHwReserved2 EQU $0023
drHwColumbia EQU $0024
drHwCivic EQU $0025
drHWPBLCD EQU $0027
drHWCSC EQU $0028
drHwJET EQU $0029
drHWMEMCjr EQU $002A
drHwValkyrie EQU $002E
drHwKeystone EQU $002F
drHWATI EQU $0055 ; other drHW id's for built-in functions
drHwSonic EQU $0110
drHwMace EQU $0114
drHwDblExp EQU $0001 ; CPU board IDs - <catBoard> <typBoard> <0000> <0000>
MIIBoardId EQU $0010 ;Mac II Board ID
ciVidBoardID EQU $001F ;Aurora25 board ID
CX16VidBoardID EQU $0020 ;Aurora16 board ID
MIIxBoardId EQU $0021 ;Mac IIx Board ID
SE30BoardID EQU $0022 ;Mac SE/30 Board ID
MIIcxBoardId EQU $0023 ;Mac IIcx Board ID
MIIfxBoardId EQU $0024 ;F19 board ID
EricksonBoardID EQU $0028
ElsieBoardID EQU $0029
TIMBoardID EQU $002A
EclipseBoardID EQU $002B
SpikeBoardID EQU $0033
DBLiteBoardID EQU $0035
ZydecoBrdID EQU $0036
ApolloBoardID EQU $0038
PDMBrdID EQU $0039
VailBoardID EQU $003A
WombatBrdID EQU $003B
ColumbiaBrdID EQU $003C
CycloneBrdID EQU $003D
CompanionBrdID EQU $003E
DartanianBoardID EQU $0040
DartExtVidBoardID EQU $0046
HookBoardID EQU $0047 ;Hook internal video board ID
EscherBoardID EQU $004A ;Board ID for Escher (CSC)
POBoardID EQU $004D ;Board ID for Primus/Optimus/Aladdin
TempestBrdID EQU $0050 ;Non-official Board ID for Tempest
BlackBirdBdID EQU $0058 ;Board ID for BlackBird
BBExtVidBdID EQU $0059 ;Board ID for BlackBird built-in external video
YeagerBoardID EQU $005A ;Board ID for Yeager
BBEtherNetBdID EQU $005E ;Board ID for BlackBird Ethernet board
TELLBoardID EQU $0065 ;Board ID for TELL (Valkyrie)
MalcolmBoardID EQU $065E ;Board ID for Malcolm
AJBoardID EQU $065F ;Board ID for AJ
M2BoardID EQU $0660 ;Board ID for M2
OmegaBoardID EQU $0661 ;Board ID for Omega
; other board IDs
BoardIDDblExp EQU $002F
DAFBPDSBoardID EQU $0037
MonetBoardID EQU $0048
SacSONIC16BoardID EQU $004E
SacSONIC32BoardID EQU $004F ; CPU board types - <CatCPU> <Typ680x0> <DrSwMacCPU>
drHWMacII EQU $0001 ;Mac II hw ID
drHwMacIIx EQU $0002 ;Mac IIx hw ID
drHWSE30 EQU $0003 ;Mac SE/30 hw ID
drHwMacIIcx EQU $0004 ;Mac IIcx hw ID
drHWMacIIfx EQU $0005 ;Mac IIfx hw ID
drHWF19 EQU $0005 ;F19 hw ID
sBlockTransferInfo EQU 20 ;general slot block xfer info
sMaxLockedTransferCount EQU 21 ;slot max. locked xfer count
boardId EQU 32 ;Board Id
pRAMInitData EQU 33 ;sPRAM init data
primaryInit EQU 34 ;Primary init record
timeOutConst EQU 35 ;Time out constant
vendorInfo EQU 36 ;Vendor information List. See Vendor List, below
boardFlags EQU 37 ;Board Flags
secondaryInit EQU 38 ;Secondary init record/code
; The following Id's are associated with all CPU sResources.
MajRAMSp EQU 129 ;ID of Major RAM space.
MinROMSp EQU 130 ;ID of Minor ROM space.
vendorId EQU 1 ;Vendor Id
serialNum EQU 2 ;Serial number
revLevel EQU 3 ;Revision level
partNum EQU 4 ;Part number
date EQU 5 ;Last revision date of the card
testByte EQU 32 ;Test byte.
testWord EQU 33 ;0021
testLong EQU 34 ;Test Long.
testString EQU 35 ;Test String.
; sResource List. Category: Display Type: Video
; The following Id's are common to all Mode sResources in Display_Video
; functional sResources.
mBlockTransferInfo EQU 5 ; slot block xfer info PER MODE
mMaxLockedTransferCount EQU 6 ; slot max. locked xfer count PER MODE
;*************************************************************
;Macros
;*************************************************************
;=============================================================
; Offset List Entry
;=============================================================
MACRO
OSLstEntry &Id,&Offset
DC.L (&Id<<24)++((&Offset-*)**$00FFFFFF)
ENDM
;=============================================================
; Data List Entry
;=============================================================
MACRO
DatLstEntry &Id,&Data
DC.L (&Id<<24)+&Data
ENDM
ENDIF ; __ROMDEFS__